﻿<Window x:Class="WpfStudy.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="400" Width="500">
    <Window.Resources>
        <Style TargetType="Button" x:Key="buttonStyle">
            <Setter Property="Width" Value="120"></Setter>
            <Setter Property="Height" Value="25"></Setter>
            <Setter Property="Margin" Value="5"></Setter>
        </Style>
    </Window.Resources>
    <Grid Margin="10">
        <StackPanel Orientation="Vertical">
            <Button Name="btnDataTemplate" Content="DataTemplate" Style="{StaticResource buttonStyle}" Click="btnDataTemplate_Click"></Button>
            <Button Name="btnCommand" Content="Commad" Style="{StaticResource buttonStyle}"></Button>
            <Button Name="btnItemsControl" Content="ItemsControl" Style="{StaticResource buttonStyle}" Click="btnItemsControl_Click_1"></Button>
            <Button Name="btnStyleSelector" Content="Style Selector" Style="{StaticResource buttonStyle}" Click="btnStyleSelector_Click_1"></Button>
            <Button Name="btnDataView" Content="Data View" Style="{StaticResource buttonStyle}" Click="btnDataView_Click_1"></Button>
        </StackPanel>
    </Grid>
</Window>
